﻿using System;
using Caliburn.Micro;
using ConditionTreeTestStand.Nodes;

namespace SamizdatSearch.ConditionTree
{
  public class DragAndDropHintViewModel : PropertyChangedBase
  {
    #region ' Obj Property (change notification) '

    public NodeViewModel Obj
    {
      get { return _obj; }
      set
      {
        if (_obj == value) return;
        _obj = value;
        NotifyOfPropertyChange(() => Obj);
      }
    }

    private NodeViewModel _obj;

    #endregion

    #region ' DragDestination Property (change notification) '

    public NodeViewModel DragDestination
    {
      get { return _dragDestination; }
      set
      {
        if (_dragDestination == value) return;
        _dragDestination = value;
        RaisePropertyChangedEventImmediately("DragDestination");
      }
    }

    private NodeViewModel _dragDestination;

    #endregion
  }
}